package com.vchello.dao.security;

import java.util.List;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.vchello.bean.security.RoleSecurity;

/**
 * 
 * @author power
 *
 */
public interface RoleSecurityDao extends BaseMapper<RoleSecurity>{

	List<RoleSecurity> findUserRoleSecurity(int userId);
	
	boolean saveAllRoleSecurity(List<RoleSecurity> roleSecuritys);
	
	void deleteRoleSecurity(RoleSecurity roleSecurity);
	
	boolean deleteByRoleId(int roleId);
}
